/*
 * 
 */
package parsers;

import static org.junit.Assert.assertTrue;

import java.io.File;
import java.io.IOException;

import org.junit.Before;
import org.junit.Test;

import data.ClassPreference;

public class ClassParserTest {

	ClassParser parser;
	
	@Before
	public void setUp() throws IOException {
		parser = new ClassParser(new File("classes.txt"));
	}

	@Test
	public void testParse() {
		ClassPreference cp = new ClassPreference("TCSS142", "INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING", 'A', 5);
		
		assertTrue(parser.getClasses().contains(cp));
	}

	@Test
	public void testParse2() {
		ClassPreference cp = new ClassPreference("TCES499", "UNDERGRADUATE RESEARCH", 'A', 5);
		
		assertTrue(parser.getClasses().contains(cp));
	}
	
}
